
<template>
    <div class="map_container">
        <div ref="content3d" class="content3d"></div>
        <div class="map_mask">
            <page-header></page-header>
            <echarts style=""></echarts>
        </div>
    </div>
</template>

<script setup lang="ts">
import Box from "./Box";
import { ref, onMounted, reactive } from "vue";
import PageHeader from "./PageHeader.vue"; //页面头部
import echarts from "./echarts.vue"; //2D可视化图表

const content3d = ref(null);
onMounted(() => {
    new Box(content3d.value);
})
</script>

<style lang="scss" scoped>
.map_container {
    position: relative;
    width: 100%;
    height: calc(100vh - 20px);

    .map_mask {
        pointer-events: none;
    }

    .content3d,
    .map_mask {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
}
</style>
<style>
/* 粮仓标签的样式属性 */
.tag {
    box-shadow: 0 0 2px #00ffff inset;
    background: linear-gradient(#00ffff, #00ffff) left top,
        linear-gradient(#00ffff, #00ffff) left top,
        linear-gradient(#00ffff, #00ffff) right bottom,
        linear-gradient(#00ffff, #00ffff) right bottom;
    background-repeat: no-repeat;
    background-size: 1px 6px, 6px 1px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 16px;
    padding: 4px 10px;
}
</style>